import React from 'react'
import ResetStyle from './static/ResetStyle'
import { Provider } from 'react-redux'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import Header from './common/Header/index'
import Home from './pages/Home/index'
import store from './store'

function App() {
  return (
    <Provider store={store}>
      <ResetStyle />
      <Header />
      <Router>
        <Route path='/' exact component={ Home }></Route>
        <Route path='/detail' exact render={() => <div>this is detail page</div>}></Route>
      </Router>
    </Provider>
  )
}

export default App
